/*
 * @Author: anxia.ack anchenkai@come-future.com
 * @Date: 2025-04-16 16:55:22
 * @LastEditors: anxia.ack anchenkai@come-future.com
 * @LastEditTime: 2025-04-20 16:25:05
 * @FilePath: /free-learning-front/src/api/dict.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { get } from "@/utils/request";
const DICT_URL = "/api/v1/dict-data";
export interface DictItem {
  label: string;
  value: string;
}

export const getDictList = (code: string) => {
  return get<DictItem[]>(`${DICT_URL}/${code}/options`);
};
